<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

/**
 * Class CreateMedicalDiagnoseTable
 * 病历诊断数据库
 */
class CreateMedicalDiagnoseTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_medical_diagnose', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('record_id')->index()->comment("关联medical_records_id");
            $table->text('diagnose')->nullable()->comment("诊断情况");
            $table->text('cn_diagnose')->nullable()->comment("中医诊断情况");
            $table->string('remark')->default('')->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_medical_diagnose');
    }
}
